package com.example.dayu521.msg_sender.conf;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

@Configuration(proxyBeanMethods = false)
public class WebMvc {
    @Bean
    public WebMvcConfigurer ktConfigurer() {
        return new WebMvcConfigurer() {
            public void addInterceptors(InterceptorRegistry registry) {
                registry.addInterceptor(new org.example.dayu521.conf.WebMvc.KTInterceptor()).addPathPatterns("/**");
            }

        };
    }
}

